<div>
	
<div class="modal-header">
    <h4 class="modal-title">产品信息</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal" >


    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">产品名称</label>
        <div class="col-sm-3 col-xs-12">
            <input type="text" class="form-control" ng-model="p.name" >
        </div>
    </div>


    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">产品编号</label>
        <div class="col-sm-3 col-xs-12">
            <p class="form-control-static">{{p.code}}</p>
        </div>
    </div>

    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">商城卖价</label>
        <div class="col-sm-3 col-xs-12">
            <!-- <input type="number" class="form-control" ng-model="p.guide_price" readonly > -->
            <p class="form-control-static">{{p.guide_price}}</p>
        </div>
        <div class="col-sm-6 col-xs-12">
          <p class="form-control-static text-danger">
            游客实际在商城中支付的价格
          </p>
        </div>
    </div>


    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">分销价格</label>
        <div class="col-sm-3 col-xs-12">
            <!-- <input type="number" class="form-control" ng-model="p.cost_price" > -->
            <p class="form-control-static">{{p.cost_price}}</p>
        </div>
        <div class="col-sm-6 col-xs-12">
          <p class="form-control-static text-danger">
            产品发布到群盟系统中，其他商家卖出后，你收取到的成本价格。
          </p>
        </div>
    </div>


    <div class="form-group" >
        <label class="col-sm-3 col-xs-4 control-label text-right">划线价格</label>
        <div class="col-sm-3 col-xs-12">
            <input type="number" class="form-control" ng-model="p.market_price" >
        </div>
        <div class="col-sm-6 col-xs-12">
          <p class="form-control-static text-danger">
            产品的市场价格，门市价格。
          </p>
        </div>
    </div>


</div>

</div>


<hr>



<div class="modal-header">
    <h4 class="modal-title">状态</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal" >

	  <div class="form-group" >
        <label class="col-xs-3  control-label text-right">是否可退</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.back_type == '0'"
                  name="p.back_type"
                  ng-true-value="'0'"
                  ng-false-value="'1'"
                  ng-model="p.back_type"
                >
                <i></i>
            </label>

            <span class="form-control-static text-danger">可退产品，核销后分佣。不可退产品，购买分佣</span>
        </div>
    </div>


    <!-- <div class="form-group" >
        <label class="col-xs-3  control-label text-right">是否上架</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.state == '1'"
                  name="p.state"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.state"
                >
                <i></i>
            </label>

            <span class="form-control-static text-danger">
              开启改选项后，产品将出现在商城中，否则出现在仓库中。
            </span>

        </div>
    </div> -->


  
    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">是否在商城中隐藏</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.isshow == '1'"
                  name="p.isshow"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.isshow"
                >
                <i></i>
              </label>

              <span class="form-control-static text-danger">开启该选项后，产品将不会出现在商城中,货架等其他地方正常显示。</span>
        </div>
    </div>

</div>

</div>


<hr>



<div class="modal-header">
    <h4 class="modal-title">短信</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal" >


    <div class="form-group" >
        <label class="col-xs-3  control-label text-right">启用</label>
        <div class="col-xs-9 ">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.sms_type == '1'"
                  name="p.sms_type"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.sms_type"
                >
                <i></i>
              </label>
        </div>
    </div>


    <div class="form-group" ng-if="p.sms_type == '1'">
        <label class="col-sm-3 col-xs-4 control-label text-right">短信内容</label>
        <div class="col-sm-3 col-xs-12">
            <textarea class="form-control" rows="3" ng-model="p.sms_diy"></textarea>
        </div>
    </div>


</div>

</div>


<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="gogo()">保存</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>



</div>